<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');

$config->id = 22;

//var_dump($config);

$arr = new stdClass;
$arr->id = 1;
$arr->name = "chenjinle";
$arr->pass = "123456";
$arr->login_time = "2010-07-15 00:00:00";
var_dump($arr);

var_dump($arr->name,empty($arr->name2));


//要取出某个值的话，如：name
echo $arr->name;
//chenjinle

var_dump((object)$_SERVER);
